package com.zhouxiaoge.conf.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 周明阳
 * @date 2019/5/13 14:49
 */

@RestController
public class ConfigClientController {

    @Value("${localInfo}")
    private String localInfo;

    @Value("${profile}")
    private String profile;

    @GetMapping("/")
    public String getProfile() {
        return localInfo;
    }

    @GetMapping("/config")
    public String getConfigProfile() {
        return profile;
    }

}
